package com.ys.otms.dto;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString
@NoArgsConstructor
public class YetaDto {
    /**企业id*/
    private String businessId;
    /**应用id*/
    private String appId;
    /**话术id*/
    private String robotId;
    /**通话UUID|录音和会话的唯一关联*/
    private String callUuid;
    /**主叫号码*/
    private String caller;
    /**被叫号码*/
    private String callee;
    /**呼叫方向|1:呼入 2 呼出*/
    private Integer direction;
    /**接听时间*/
    private String timeAnswer;
    /**挂断时间*/
    private String timeHangup;
    /**拨号振铃时长|秒*/
    private Integer durationRing;
    /**通话时长|秒*/
    private Integer durationCall;
    /**外呼任务id*/
    private String taskId;
    /**外呼任务id*/
    private String taskDataId;
    /**拨号时间*/
    private String timeDial;
    /**振铃时间*/
    private String timeRing;
    /**外呼结果*/
    private String taskResult;
    /**外呼结果描述*/
    private String taskResultDesc;
    /**外呼重试次数*/
    private String taskTries;
    /**外呼数据行号*/
    private Integer taskRowIndex;


    /**url路径|http://voice.kxjlcc.com:9000/*/
    private String url;
    /**文件大小|字节*/
    private String size;
    /**录音长度|秒*/
    private Integer duration;


    /**最高意向度*/
    private Integer tagMax;
    /**最低意向度*/
    private Integer tagMin;

    public YetaDto(String businessId, String appId, String robotId, String callUuid, String caller, String callee, Integer direction, String timeAnswer, String timeHangup, Integer durationRing, Integer durationCall, String taskId, String taskDataId, String timeDial, String timeRing, String taskResult, String taskResultDesc, String taskTries, Integer taskRowIndex) {
        this.businessId = businessId;
        this.appId = appId;
        this.robotId = robotId;
        this.callUuid = callUuid;
        this.caller = caller;
        this.callee = callee;
        this.direction = direction;
        this.timeAnswer = timeAnswer;
        this.timeHangup = timeHangup;
        this.durationRing = durationRing;
        this.durationCall = durationCall;
        this.taskId = taskId;
        this.taskDataId = taskDataId;
        this.timeDial = timeDial;
        this.timeRing = timeRing;
        this.taskResult = taskResult;
        this.taskResultDesc = taskResultDesc;
        this.taskTries = taskTries;
        this.taskRowIndex = taskRowIndex;
    }

    public YetaDto(String businessId, String appId, String robotId, String callUuid, String url, String size, Integer duration) {
        this.businessId = businessId;
        this.appId = appId;
        this.robotId = robotId;
        this.callUuid = callUuid;
        this.url = url;
        this.size = size;
        this.duration = duration;
    }

    public YetaDto(String businessId, String appId, String robotId, String callUuid, Integer tagMax, Integer tagMin) {
        this.businessId = businessId;
        this.appId = appId;
        this.robotId = robotId;
        this.callUuid = callUuid;
        this.tagMax = tagMax;
        this.tagMin = tagMin;
    }
}
